
package org.springxrsk.modules.students.wrapper;

import org.springxrsk.core.mp.support.BaseEntityWrapper;
import org.springxrsk.core.tool.utils.BeanUtil;
import org.springxrsk.modules.students.pojo.entity.QyStudentCardsEntity;
import org.springxrsk.modules.students.pojo.vo.QyStudentCardsVO;
import java.util.Objects;

/**
 * 学员课卡管理 包装类,返回视图层所需的字段
 *
 *  @author
 * @since 2024-06-15
 */
public class QyStudentCardsWrapper extends BaseEntityWrapper<QyStudentCardsEntity, QyStudentCardsVO>  {

	public static QyStudentCardsWrapper build() {
		return new QyStudentCardsWrapper();
 	}

	@Override
	public QyStudentCardsVO entityVO(QyStudentCardsEntity qyStudentCards) {
		QyStudentCardsVO qyStudentCardsVO = Objects.requireNonNull(BeanUtil.copyProperties(qyStudentCards, QyStudentCardsVO.class));

		//User createUser = UserCache.getUser(qyStudentCards.getCreateUser());
		//User updateUser = UserCache.getUser(qyStudentCards.getUpdateUser());
		//qyStudentCardsVO.setCreateUserName(createUser.getName());
		//qyStudentCardsVO.setUpdateUserName(updateUser.getName());

		return qyStudentCardsVO;
	}


}
